package com.zbkj.common.model.client.agent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户定位表
 * </p>
 *
 * @author CRMEB Team
 * @since 2025-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "eb_client_user_location", autoResultMap = true)
@ApiModel(value = "UserLocation对象", description = "用户定位表")
public class UserLocation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户所属的主要行业类别")
    private String industry;

    @ApiModelProperty(value = "行业内的细分领域")
    private String subIndustry;

    @ApiModelProperty(value = "主要业务区域")
    private String region;

    @ApiModelProperty(value = "目标客户群体画像，包含年龄和性别等信息")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Object targetAudience;

    @ApiModelProperty(value = "偏好的营销推广")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Object marketingNeeds;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "商户ID")
    private Integer merId;

    @ApiModelProperty(value = "用户输入的定位描述")
    private String locationDesc;

    @ApiModelProperty(value = "用户定位描述，AI生成的markdown格式")
    private String locationResult;

    @ApiModelProperty(value = "是否删除，0-否，1-是")
    @TableLogic
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}